﻿using HTFW.Core;
using HTFW.Logger;
using HTFW.Utility.Global;

public class TimerFactory : Singleton<TimerFactory>
{
    HTTimer mTimer;

    public HTTimer GetTimer()
    {
        if (mTimer == null)
        {
            //初始化HTTimer
            mTimer = new HTTimer();
            //设置打印日志接口
            mTimer.SetLog((msg) => { HLog.Debug(msg); });
        }

        return mTimer;
    }
}